<template>
  <el-container>
    <el-header>
      <Comheader :isTrue="true"><h1 @click="getcesgi">欢迎来到知崖主页</h1></Comheader>
    </el-header>
    <el-container class="pt20">
      <el-aside width="210px">
        <leftNav />
      </el-aside>
      <el-main>
      
        <div class="mainp">
          <router-view></router-view>
        </div>
      </el-main>
    </el-container>
  </el-container>
</template>


<script>
import leftNav from "@/components/nav/leftNav.vue";
import Comheader from "@/components/common/Comheader.vue";

export default {
  data(){
    return{
      num:0,
    }
  },
  mounted(){
    // this.getcesgi()
  },
  methods: {
    async getcesgi(){
      alert("123")
      let data=await this.$http.get("user/ceshi/")

      console.log(data)

    }
  
  },

  components: {
    leftNav,
    Comheader
  },
};
</script>

<style scoped lang="less">
@Color: #409EFF;
h1{
  color: #fff;
  font-size: 24px;
}
.el-containe {
  min-height: 100vh;
}
.pt20{
  padding-top: 40px;
  padding-bottom: 30px;
  min-width: 800px;
  min-height: 500px;
  background-image:"@/assets/bck/bck1.jpg" !important;
  background-size: cover;
}

.el-header{
  padding: 0;
}


.el-aside {
  // background-color: #898989;
  min-height: calc(100vh - 80px);
}


</style>